package com.eam.action;



import java.util.List;

import com.eam.bean.Position;
import com.eam.service.PositionService;
import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class PositionAction extends ActionSupport {

	private PositionService positionService;
	private Position p;

	public void add() throws Exception {
		positionService.add(p);
	}

	public List query() {
		List<Position> list = positionService.query();
		return list;
	}
	
	public Position getP() {
		return p;
	}

	public void setP(Position p) {
		this.p = p;
	}

	public PositionService getPositionService() {
		return positionService;
	}

	public void setPositionService(PositionService positionService) {
		this.positionService = positionService;
	}
}
